Skip to content

Issue 48: Pack Vault struct fields for smaller layout#96

Merged
JerryIdoko merged 2 commits intoVesting-Vault:mainfrom
Edoscoba:issue-48-pack-vault-struct
Feb 25, 2026
Merged

Issue 48: Pack Vault struct fields for smaller layout#96
JerryIdoko merged 2 commits intoVesting-Vault:mainfrom
Edoscoba:issue-48-pack-vault-struct

Conversation

@Edoscoba
Copy link
Copy Markdown
Contributor

@Edoscoba Edoscoba commented Feb 25, 2026

PR description:

  • Reordered Vault fields (i128 → 8-byte → bool) to minimize Rust padding.
  • Documented Soroban #[contracttype] serialization guidance: field order is schema; reordering requires migration if any Vaults already exist.
  • Updated SPEC.md to reflect the new layout and best practices.

closes #74

@JerryIdoko JerryIdoko merged commit 379e871 into Vesting-Vault:main Feb 25, 2026
1 check failed
Tolais added a commit to Tolais/Contracts that referenced this pull request Mar 30, 2026
- Added Gas Treasury mechanism to subsidize transaction fees for the first 100 users
- Users with < 5 XLM balance can now claim vesting rewards with zero gas cost (contract pays fee)
- Implemented `GasSubsidyTracker` to track subsidized claims
- Added `claim_with_subsidy()` function that signs and pays fee from treasury if eligible
- Includes subsidy limit (100 users) and minimum XLM threshold check

Closes Vesting-Vault#149 Vesting-Vault#96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

#48 Issue 48: [Optimization] Packing Structs for Ledger Size

2 participants